package com.hd.controller.personaloffice;

import com.hd.controller.base.BaseController;
import com.hd.service.personaloffice.WorkCommentOpinionService;
import com.hd.util.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/workComment")
@Controller
public class WorkCommentOpinionController extends BaseController {

    @Autowired
    private WorkCommentOpinionService workCommentOpinionService;
    @ResponseBody
    @RequestMapping("/updateOpinion")
    public Object updateOpinion(String id,String opinion){
        if(StringUtils.isNull(opinion)){
            opinion="无";
        }
        workCommentOpinionService.updateOpinion(id,opinion);
        return renderSuccess();
    }
}
